﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Massive_with_numbers
{
	class Program
	{
		static void Main(string[] args)
		{
			string group1 = "";
			string group2 = "";
			string group3 = "";
			int[] array = new int[10]; // create array from int numbers

			Random rnd = new Random();
			for(int i = 0; i < array.Length; i++)
			{
				array[i] = rnd.Next(100);
				//Console.Write(array[i]);
				if (array[i] % 3 == 0 && array[i] % 2 == 0)
				{
					group1 = group1 + array[i] + " ";
					//Console.Write("group1");
				}
				else if (array[i] % 2 == 0)
				{
					group2 = group2 + array[i] + " ";
					//Console.Write(" group2 ");
				}
				else if (array[i] % 3 == 0)
				{
					group3 = group3 + array[i] + " ";
					//Console.Write(" group3 ");
				}
				//Console.WriteLine();
			}
			Console.WriteLine(group1);
			Console.WriteLine(group2);
			Console.WriteLine(group3);
			Console.ReadLine();
		}
	}
}
